<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title><?= $this->lang->line('pages_login_title'); ?></title>
	</head>
	<body>
		<div id="login_wrapper">
		<?php
		if (!empty($login_errors)) {
			?><div class="box error"><ul><?php
			foreach ($login_errors as $message) {
				?><li><?= $message; ?></li><?php 
			}
			?></ul></div><?php
		} elseif(empty($login_success)) {
			?><div class="box error hidden"><ul></ul></div><?php
		}
		if ($login_form) {
			?><div class="box login"><?= $login_form; ?></div><?php
		}
		if (!empty($login_success)) {
			?><div class="success"><?= $this->lang->line('usr_notice_logined'); ?></div><?php
		}
		?>
		</div>
	</body>
</html>